package Exception;

public class demo4 {
    static void proc()
            throws IllegalAccessException
    {
        System.out.println("inside proc");

        throw new
                IllegalAccessException("demo");
    }
    public static void main(String[] args) {
        try {
            proc();
        }

        catch(IllegalAccessException e)
        {
            System.out.println("捕获"+e);
        }
    }
}
